import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;

import javax.ws.rs.core.Application;

@SpringBootTest(classes = Application.class)
public class test {

    @Test
    public void test(){
        String message="admin";
        String password="$2a$10$78o7QMRWjkmvkr7FqhbAYuQ5VUpBgCdteisljinW.431J8UzdYeQ6";
        BCryptPasswordEncoder passwordEncoder=new BCryptPasswordEncoder();
        boolean matches = passwordEncoder.matches(message, password);
        System.out.println(matches);
    }
}
